package org.lanqiao.tjut.service;

import java.util.List;

import org.apache.ibatis.session.SqlSession;
import org.lanqiao.tjut.bean.TBAdminBean;
import org.lanqiao.tjut.dao.ITBAdminBeanDao;
import org.lanqiao.tjut.db.DBFactory;

/**
 * Model层：进行业务逻辑处理
 * @author Administrator
 *
 */
public class UserLoginService {
	/**
	 * 教师登录验证信息查询
	 * 
	 * @param adminB
	 *            登录信息
	 * @return 返回查询结果集
	 */
	public List<TBAdminBean> getUserLoginInfo(TBAdminBean adminB) {
		SqlSession sqlS = DBFactory.getDBDriverInstance().getSqlSession();
		ITBAdminBeanDao adminD = sqlS.getMapper(ITBAdminBeanDao.class);
		List<TBAdminBean> lstAdmins = adminD.getUserLoginInfo(adminB);
		// 返回登录查询结果信息集
		return lstAdmins;
	}

	
}
